package com.shangxia.monomer.study.designPatterns.creationType.prototype;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

import java.io.Serializable;

/**
 * @ProjectName: monomer
 * @ClassName: Factory
 * @Time: 2021/7/19
 * @Author: zhouy
 * @Description:
 * @Experience:
 */

@Slf4j
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Original implements Cloneable,Serializable {
    private String name;
    private String area;
    private Integer size;
    private Son son;

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
